//
//  MineViewController.m
//  MyProject
//
//  Created by dllo on 15/10/31.
//  Copyright (c) 2015年 蓝鸥0825. All rights reserved.
//

#import "MineViewController.h"
#import "MineView.h"
#import "SetSystemViewController.h"
#import "FavoriteViewController.h"


@interface MineViewController ()

@end

@implementation MineViewController







- (void)viewDidLoad {
    
    [super viewDidLoad];
    self.title = @"我的";
    MineView *mine = [[MineView alloc] initWithFrame:self.view.frame];
    [self.view addSubview:mine];
    mine.VC = self;
    
    
    //      系统设置
    void(^block)() = ^(){
        
        SetSystemViewController *seVC = [[SetSystemViewController alloc] init];
        [self.navigationController pushViewController:seVC animated:YES];
        
    };
    mine.Block = block;
    
    
    
    
    //      跳到我的收藏
    void(^blockFavorite)() = ^(){
        
        FavoriteViewController *favoriteVC = [[FavoriteViewController alloc] init];
        [self.navigationController pushViewController:favoriteVC animated:YES];
        
    };
    mine.blockFavorite = blockFavorite;
    
    
    
    
    mine.loginVC = self;
    mine.registerVC = self;
    
    [mine release];
    
    
}











- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}









@end
